package org.example.mybatisdemo.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.mybatisdemo.model.ArticleInfo;

@Mapper
public interface ArticleInfoMapper {
    @Select("select * from article_info ta " +
            "left join user_info tb on ta.uid=tb.id " +
            "where ta.id=#{id}")
    ArticleInfo selectArticleInfoAndUserInfo(Integer id);
}
